<template>
<div>
  <TopNav title="我的收藏"/>
  <PostItem :postData="post" v-for="post in postList" :key="post.id"/>
</div>
</template>

<script>
import TopNav from '../components/TopNav'
import PostItem from '../components/PostItem'
export default {
    components:{
        TopNav,
        PostItem
    },
    data(){
        return{
            postList:[]
        }
    },
    created(){
        this.$axios({
            url:'/user_star',
        }).then((res)=>{
            console.log(res.data);
            this.postList = res.data.data;
        })
    }


}
</script>

<style>

</style>